Optimal. Leaf size=203 \[ \frac {(11 A-7 B) \tan ^{-1}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {2} \sqrt {\cos (c+d x)} \sqrt {a \cos (c+d x)+a}}\right )}{2 \sqrt {2} a^{3/2} d}+\frac {(7 A-3 B) \sin (c+d x)}{6 a d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a \cos (c+d x)+a}}-\frac {(A-B) \sin (c+d x)}{2 d \cos ^{\frac {3}{2}}(c+d x) (a \cos (c+d x)+a)^{3/2}}-\frac {(19 A-15 B) \sin (c+d x)}{6 a d \sqrt {\cos (c+d x)} \sqrt {a \cos (c+d x)+a}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.56, antiderivative size = 203, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, integrand size = 35, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {2978, 2984, 12, 2782, 205} \[ \frac {(11 A-7 B) \tan ^{-1}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {2} \sqrt {\cos (c+d x)} \sqrt {a \cos (c+d x)+a}}\right )}{2 \sqrt {2} a^{3/2} d}+\frac {(7 A-3 B) \sin (c+d x)}{6 a d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a \cos (c+d x)+a}}-\frac {(A-B) \sin (c+d x)}{2 d \cos ^{\frac {3}{2}}(c+d x) (a \cos (c+d x)+a)^{3/2}}-\frac {(19 A-15 B) \sin (c+d x)}{6 a d \sqrt {\cos (c+d x)} \sqrt {a \cos (c+d x)+a}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 205
Rule 2782
Rule 2978
Rule 2984
Rubi steps
\begin {align*} \int \frac {A+B \cos (c+d x)}{\cos ^{\frac {5}{2}}(c+d x) (a+a \cos (c+d x))^{3/2}} \, dx &=-\frac {(A-B) \sin (c+d x)}{2 d \cos ^{\frac {3}{2}}(c+d x) (a+a \cos (c+d x))^{3/2}}+\frac {\int \frac {\frac {1}{2} a (7 A-3 B)-2 a (A-B) \cos (c+d x)}{\cos ^{\frac {5}{2}}(c+d x) \sqrt {a+a \cos (c+d x)}} \, dx}{2 a^2}\\ &=-\frac {(A-B) \sin (c+d x)}{2 d \cos ^{\frac {3}{2}}(c+d x) (a+a \cos (c+d x))^{3/2}}+\frac {(7 A-3 B) \sin (c+d x)}{6 a d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a+a \cos (c+d x)}}+\frac {\int \frac {-\frac {1}{4} a^2 (19 A-15 B)+\frac {1}{2} a^2 (7 A-3 B) \cos (c+d x)}{\cos ^{\frac {3}{2}}(c+d x) \sqrt {a+a \cos (c+d x)}} \, dx}{3 a^3}\\ &=-\frac {(A-B) \sin (c+d x)}{2 d \cos ^{\frac {3}{2}}(c+d x) (a+a \cos (c+d x))^{3/2}}+\frac {(7 A-3 B) \sin (c+d x)}{6 a d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a+a \cos (c+d x)}}-\frac {(19 A-15 B) \sin (c+d x)}{6 a d \sqrt {\cos (c+d x)} \sqrt {a+a \cos (c+d x)}}+\frac {2 \int \frac {3 a^3 (11 A-7 B)}{8 \sqrt {\cos (c+d x)} \sqrt {a+a \cos (c+d x)}} \, dx}{3 a^4}\\ &=-\frac {(A-B) \sin (c+d x)}{2 d \cos ^{\frac {3}{2}}(c+d x) (a+a \cos (c+d x))^{3/2}}+\frac {(7 A-3 B) \sin (c+d x)}{6 a d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a+a \cos (c+d x)}}-\frac {(19 A-15 B) \sin (c+d x)}{6 a d \sqrt {\cos (c+d x)} \sqrt {a+a \cos (c+d x)}}+\frac {(11 A-7 B) \int \frac {1}{\sqrt {\cos (c+d x)} \sqrt {a+a \cos (c+d x)}} \, dx}{4 a}\\ &=-\frac {(A-B) \sin (c+d x)}{2 d \cos ^{\frac {3}{2}}(c+d x) (a+a \cos (c+d x))^{3/2}}+\frac {(7 A-3 B) \sin (c+d x)}{6 a d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a+a \cos (c+d x)}}-\frac {(19 A-15 B) \sin (c+d x)}{6 a d \sqrt {\cos (c+d x)} \sqrt {a+a \cos (c+d x)}}-\frac {(11 A-7 B) \operatorname {Subst}\left (\int \frac {1}{2 a^2+a x^2} \, dx,x,-\frac {a \sin (c+d x)}{\sqrt {\cos (c+d x)} \sqrt {a+a \cos (c+d x)}}\right )}{2 d}\\ &=\frac {(11 A-7 B) \tan ^{-1}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {2} \sqrt {\cos (c+d x)} \sqrt {a+a \cos (c+d x)}}\right )}{2 \sqrt {2} a^{3/2} d}-\frac {(A-B) \sin (c+d x)}{2 d \cos ^{\frac {3}{2}}(c+d x) (a+a \cos (c+d x))^{3/2}}+\frac {(7 A-3 B) \sin (c+d x)}{6 a d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a+a \cos (c+d x)}}-\frac {(19 A-15 B) \sin (c+d x)}{6 a d \sqrt {\cos (c+d x)} \sqrt {a+a \cos (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 6.81, size = 1054, normalized size = 5.19 \[ \text {result too large to display} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.98, size = 221, normalized size = 1.09 \[ \frac {3 \, \sqrt {2} {\left ({\left (11 \, A - 7 \, B\right )} \cos \left (d x + c\right )^{4} + 2 \, {\left (11 \, A - 7 \, B\right )} \cos \left (d x + c\right )^{3} + {\left (11 \, A - 7 \, B\right )} \cos \left (d x + c\right )^{2}\right )} \sqrt {a} \arctan \left (\frac {\sqrt {2} \sqrt {a \cos \left (d x + c\right ) + a} \sqrt {a} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{2 \, {\left (a \cos \left (d x + c\right )^{2} + a \cos \left (d x + c\right )\right )}}\right ) - 2 \, {\left ({\left (19 \, A - 15 \, B\right )} \cos \left (d x + c\right )^{2} + 12 \, {\left (A - B\right )} \cos \left (d x + c\right ) - 4 \, A\right )} \sqrt {a \cos \left (d x + c\right ) + a} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{12 \, {\left (a^{2} d \cos \left (d x + c\right )^{4} + 2 \, a^{2} d \cos \left (d x + c\right )^{3} + a^{2} d \cos \left (d x + c\right )^{2}\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {B \cos \left (d x + c\right ) + A}{{\left (a \cos \left (d x + c\right ) + a\right )}^{\frac {3}{2}} \cos \left (d x + c\right )^{\frac {5}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.34, size = 443, normalized size = 2.18 \[ \frac {\sqrt {a \left (1+\cos \left (d x +c \right )\right )}\, \sin \left (d x +c \right ) \left (33 A \arcsin \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}\right ) \sin \left (d x +c \right ) \left (\cos ^{2}\left (d x +c \right )\right ) \sqrt {2}\, \left (\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}\right )^{\frac {3}{2}}-21 B \arcsin \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}\right ) \sin \left (d x +c \right ) \left (\cos ^{2}\left (d x +c \right )\right ) \sqrt {2}\, \left (\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}\right )^{\frac {3}{2}}+66 A \arcsin \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}\right ) \sin \left (d x +c \right ) \cos \left (d x +c \right ) \sqrt {2}\, \left (\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}\right )^{\frac {3}{2}}-42 B \arcsin \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}\right ) \sin \left (d x +c \right ) \cos \left (d x +c \right ) \sqrt {2}\, \left (\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}\right )^{\frac {3}{2}}+33 A \arcsin \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}\right ) \sin \left (d x +c \right ) \sqrt {2}\, \left (\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}\right )^{\frac {3}{2}}-21 B \arcsin \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}\right ) \sin \left (d x +c \right ) \sqrt {2}\, \left (\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}\right )^{\frac {3}{2}}-38 A \left (\cos ^{3}\left (d x +c \right )\right )+30 B \left (\cos ^{3}\left (d x +c \right )\right )+14 A \left (\cos ^{2}\left (d x +c \right )\right )-6 B \left (\cos ^{2}\left (d x +c \right )\right )+32 A \cos \left (d x +c \right )-24 B \cos \left (d x +c \right )-8 A \right )}{12 d \,a^{2} \left (-1+\cos \left (d x +c \right )\right ) \left (1+\cos \left (d x +c \right )\right )^{2} \cos \left (d x +c \right )^{\frac {3}{2}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {B \cos \left (d x + c\right ) + A}{{\left (a \cos \left (d x + c\right ) + a\right )}^{\frac {3}{2}} \cos \left (d x + c\right )^{\frac {5}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {A+B\,\cos \left (c+d\,x\right )}{{\cos \left (c+d\,x\right )}^{5/2}\,{\left (a+a\,\cos \left (c+d\,x\right )\right )}^{3/2}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________